<?php
// +----------------------------------------------------------------------
// | Author: 闪电 <573725206@qq.com>
// +----------------------------------------------------------------------
namespace Admin\Controller;
use Common\Controller\AuthController;

Class RuntimeController extends AuthController {
	public function index() {
		$url = $_SERVER['DOCUMENT_ROOT'];
		$Runtime_file_path = $url . __ROOT__ . "/Application/" . CONTROLLER_NAME; //后台缓存

		if (deldir($Runtime_file_path)) {
			$this->success('缓存更新成功!', U('Admin/Index/index'));
		} else {
			$this->error('更新出错,请稍候再试....', U('Admin/Index/index'));
		}
	}

}